package xuesheng;

public class student {
	public String name;
	public double earning;
	public String room1;
	public String room2;
	
	public student(String name, double earning, String room1, String room2) {
		this.name = name;
		this.earning = earning;
		this.room1 = room1;
		this.room2 = room2;
	}
	public String toString() {
		return "学生姓名：" + name + "   学生负责的实验室一:" + room1 + "   学生负责的实验室二:" + room2;
	}

}
